
public class ChangePoint {

	int swapX;
	int swapY;

	double startPointX = 80.5;
	double startPointY = 102.5;

		public void changePointX(int x){
			for (int i = 0; i <= 6; i++) {
				if (  startPointX + 50 * i < x &&  x < startPointX + 50 * (i + 1)) {
					swapX = i;
				}
			}
		}

		public void changePointY(int y){
			for (int i = 0; i <= 6; i++) {
				if (  startPointY + 50 * i < y &&  y < startPointY + 50 * (i + 1)) {
					swapY = i;
				}
			}
		}
}
